<!DOCTYPE html>
<html>
<head>
    <title>User Activation Tracking</title>
    <!-- Amplitude SDK -->
    <script src="https://cdn.amplitude.com/script/229fac6c162a3873b13d255a09453565.js"></script><script>window.amplitude.add(window.sessionReplay.plugin({sampleRate: 1}));window.amplitude.init('229fac6c162a3873b13d255a09453565', {"fetchRemoteConfig":true,"autocapture":true});</script>
    <script>
        // Initialize Amplitude
        amplitude.init('229fac6c162a3873b13d255a09453565', null, {
            includeUtm: true,
            includeReferrer: true,
            includeGclid: true
        });
        amplitude.setUserId('0x5E699eCD77e86248761006E0bB26e70D21254409');

        // Track initial page view
        amplitude.track('Page Viewed');

        // Track user activation (example: button click)
        function trackActivation() {
            amplitude.track('User Activated', {
                activation_type: 'button_click',
                feature_used: 'premium_signup'
            });
        }
        function shareShortUrl(){
            amplitude.track('share shortUrl',{
                activation_type: 'share_short_url',
                user_properties: {
                    shortCode: 'test short code'
                }
            });
        }
    </script>
</head>
<body>
<button onclick="trackActivation()">Activate Account</button>
<button onclick="shareShortUrl()">Share shortUrl</button>

</body>
</html>